import {
    createApp
} from "vue";
import App from "./App.vue";
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import request from './request'
import { router } from './router';

import Carousel from "v3-carousel"; // 引入

router.beforeEach((to, from, next) => {
    // 让页面回到顶部
    document.documentElement.scrollTop = 0
    next()
})

createApp(App).use(Carousel).use(router).use(Antd).use(request).mount('#app')
